﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DeliveryOrderDetail.aspx.cs" Inherits="WMS6.Web.TransportManagement.DeliveryOrderDetail" meta:resourcekey="Page" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>DeliveryOrderDetail</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />
    <script src="../Js/jquery.js" type="text/javascript"></script>
    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>
    <script src="../Js/util.js" type="text/javascript"></script>
    <script src="../Js/calendar.js" type="text/javascript" charset="gb2312"></script>
    <script src="../Js/InitPage.js" type="text/javascript"></script>
    <script src="../Js/Verification.js" type="text/javascript"></script>
    <script type="text/javascript">
        //初始化页面
        window.onload = function(){
            initDetailPage();
        }
        
        //弹出窗口选择货品
        function selectSku() {
            var rtnValue = popModalWindow('../Configuration/SkuQuery.aspx?action=txtSkuID&ownerID=' + escape(document.getElementById("hdnOwnerID").value), 'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtSkuID").focus();
                document.getElementById("txtSkuID").value = rtnValue;
                document.getElementById("hdnSkuID").value = rtnValue;
                document.getElementById("hdnPageType").value = "1"
                __doPostBack("txtSkuID_TextChanged","");
            }
        }

    </script>
</head>
<body>
    <form id="F8013" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        
        <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom">
                        <asp:Label ID="lblAllocateRuleDetail" runat="server" CssClass="label_header" 
                            Text="运单明细" meta:resourcekey="lblAllocateRuleDetail"></asp:Label>
                    </td>
                    <td>
                        <asp:Button ID="btnCancel" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnCancel%>" AccessKey="c"
                            OnClick="btnCancel_Click"  />
                    </td>
                    <td>
                        <asp:Button ID="btnSave" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnSave%>" AccessKey="s"
                            OnClick="btnSave_Click" />
                    </td>
                </tr>
            </table>
        </div>
        
        
        
             <asp:UpdatePanel ID="up1" runat="server">
                <ContentTemplate>
                    <div>
                        <asp:Label ID="lblMsg" runat="server" CssClass="label_message" 
                            meta:resourcekey="lblMsg"></asp:Label>
                    </div>
                    
                    
                    <div id="div_menu">
                        <div style="float: left; width: 8px;">
                            <div class="tabL" id="divL1">
                            </div>
                        </div>
                        <div style="float: left;" class="tabLabelCont tabCur" onclick="setTab('one',1,2)"
                            id="divM1">
                            <asp:Label ID="one1" CssClass="hover" runat="server" 
                                meta:resourcekey="one1">基本信息</asp:Label></div>
                        <div style="float: left; margin-right: 2px;">
                            <div class="tabR" id="divR1">
                            </div>
                        </div>
                        <div style="float: left; width: 8px;">
                            <div class="tabL_1" id="divL2">
                            </div>
                        </div>
                        <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',2,2);"
                            id="divM2">
                            <asp:Label ID="one2" CssClass="navigationlabel" runat="server" 
                                meta:resourcekey="one2">&nbsp;自定义字段&nbsp;</asp:Label></div>
                        <div style="float: left; margin-right: 2px;">
                            <div class="tabR_1" id="divR2">
                            </div>
                        </div>
                 </div>
                    
                    
                    <div id="div_content">
                    <div id="con_one_1" style="display:block;">
                        <table width="720" style="display: block; margin-left: 10px; margin-top: 10px;">
                            <tr>
                                <td><asp:Label ID="lblDeliveryOrderID" CssClass="label" runat="server" Text="运单号" 
                                        meta:resourcekey="lblDeliveryOrderID"></asp:Label></td>
                                <td><asp:Label ID="lblLineID" CssClass="label" runat="server" Text="行号" 
                                        meta:resourcekey="lblLineID"></asp:Label></td>
                                <td><asp:Label ID="lblOwnerID" CssClass="label" runat="server" Text="货主" 
                                        meta:resourcekey="lblOwnerID"></asp:Label></td>
                                <td><asp:Label ID="lblSkuID" CssClass="label" runat="server" Text="货品" 
                                        meta:resourcekey="lblSkuID"></asp:Label><font class="must_input">*</font></td>
                            </tr>
                            <tr>
                                <td><asp:TextBox ID="txtDeliveryOrderID" CssClass="textbox" runat="server" 
                                        meta:resourcekey="txtDeliveryOrderID"></asp:TextBox></td>
                                <td><asp:TextBox ID="txtLineID" CssClass="textbox" runat="server" 
                                        meta:resourcekey="txtLineID"></asp:TextBox></td>
                                <td><asp:TextBox ID="txtOwnerID" CssClass="textbox" runat="server" 
                                        meta:resourcekey="txtOwnerID"></asp:TextBox></td>
                                <td><asp:TextBox ID="txtSkuID" CssClass="textbox" runat="server" 
                                        AutoPostBack="True" ontextchanged="txtSkuID_TextChanged" 
                                        meta:resourcekey="txtSkuID"></asp:TextBox><img src="../Images/icon_find.gif"
                                            alt="select one item" class="img" onclick="selectSku();" /></td>
                            </tr>
                            <tr>
                                <td><asp:Label ID="lblSkuDescr" CssClass="label" runat="server" Text="货品描述" 
                                        meta:resourcekey="lblSkuDescr"></asp:Label></td>
                                <td><asp:Label ID="lblPackID" CssClass="label" runat="server" Text="包装" 
                                        meta:resourcekey="lblPackID"></asp:Label></td>
                                <td><asp:Label ID="lblUomID" CssClass="label" runat="server" Text="单位" 
                                        meta:resourcekey="lblUomID"></asp:Label></td>
                                <td><asp:Label ID="lblOriginalQty" CssClass="label" runat="server" Text="订单数量" 
                                        meta:resourcekey="lblOriginalQty"></asp:Label><font class="must_input">*</font></td>
                                
                            </tr>
                            <tr>
                                <td><asp:TextBox ID="txtSkuDescr" CssClass="textbox" runat="server" 
                                        meta:resourcekey="txtSkuDescr"></asp:TextBox></td>
                                <td><asp:TextBox ID="txtPackID" CssClass="textbox" runat="server" 
                                        meta:resourcekey="txtPackID"></asp:TextBox></td>
                                <td><asp:TextBox ID="txtUomID" CssClass="textbox" runat="server" 
                                        meta:resourcekey="txtUomID"></asp:TextBox></td>
                                <td><asp:TextBox ID="txtOriginalQty" CssClass="textbox" runat="server" 
                                        meta:resourcekey="txtOriginalQty"></asp:TextBox></td>
                                
                            </tr>
                            <tr>
                                <td><asp:Label ID="lblLoadingQty" CssClass="label" runat="server" Text="装车数量" 
                                        meta:resourcekey="lblLoadingQty"></asp:Label></td>
                                <td><asp:Label ID="lblAcceptQty" CssClass="label" runat="server" Text="接受数量" 
                                        meta:resourcekey="lblAcceptQty"></asp:Label></td>
                                <td><asp:Label ID="lblRejectedQty" CssClass="label" runat="server" Text="拒收数量" 
                                        meta:resourcekey="lblRejectedQty"></asp:Label></td>
                                <td><asp:Label ID="lblLostQty" CssClass="label" runat="server" Text="丢失数量" 
                                        meta:resourcekey="lblLostQty"></asp:Label></td>
                            </tr>
                            <tr>
                                <td><asp:TextBox ID="txtLoadingQty" CssClass="textbox" runat="server" 
                                        Enabled="False" meta:resourcekey="txtLoadingQty"></asp:TextBox></td>
                                <td><asp:TextBox ID="txtAcceptQty" CssClass="textbox" runat="server" 
                                        Enabled="False" meta:resourcekey="txtAcceptQty"></asp:TextBox></td>
                                <td><asp:TextBox ID="txtRejectedQty" CssClass="textbox" runat="server" 
                                        Enabled="False" meta:resourcekey="txtRejectedQty"></asp:TextBox></td>
                                <td><asp:TextBox ID="txtLostQty" CssClass="textbox" runat="server" Enabled="False" 
                                        meta:resourcekey="txtLostQty"></asp:TextBox></td>
                            </tr>
                            <tr style="height:10px;">
                                <td></td>
                            </tr>
                        </table>
                    </div>
                    
                    <div id="con_one_2" style="display:none;">
                        <table width="720" style="display:block; margin-left: 10px; margin-top: 10px;">
                            <tr>
                                <td width="180px">
                                    <asp:Label ID="lblUdf1" runat="server" CssClass="label" Text="自定义字段01" 
                                        meta:resourcekey="lblUdf1"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblUdf6" runat="server" CssClass="label" Text="自定义字段06" 
                                        meta:resourcekey="lblUdf6"></asp:Label>
                                </td>
                                <td colspan="2">
                                    <asp:Label ID="lblRemark" runat="server" CssClass="label" Text="备注" 
                                        meta:resourcekey="lblRemark"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:TextBox ID="txtUdf1" runat="server" CssClass="textbox" 
                                        meta:resourcekey="txtUdf1"></asp:TextBox>
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtUdf6" runat="server" CssClass="textbox" 
                                        meta:resourcekey="txtUdf6"></asp:TextBox>
                                </td>
                                <td colspan="2" rowspan="3">
                                    <asp:TextBox ID="txtRemark" runat="server" CssClass="largetextarea" 
                                        TextMode="MultiLine" meta:resourcekey="txtRemark"  ></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:Label ID="lblUdf2" runat="server" CssClass="label" Text="自定义字段02" 
                                        meta:resourcekey="lblUdf2"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblUdf7" runat="server" CssClass="label" Text="自定义字段07" 
                                        meta:resourcekey="lblUdf7"></asp:Label>
                                </td>
                                <td>&nbsp;</td>
                                <td>&nbsp;</td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:TextBox ID="txtUdf2" runat="server" CssClass="textbox" 
                                        meta:resourcekey="txtUdf2"></asp:TextBox>
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtUdf7" runat="server" CssClass="textbox" 
                                        meta:resourcekey="txtUdf7"></asp:TextBox>
                                </td>
                                <td>&nbsp;</td>
                                <td>&nbsp;</td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:Label ID="lblUdf3" runat="server" CssClass="label" Text="自定义字段03" 
                                        meta:resourcekey="lblUdf3"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblUdf8" runat="server" CssClass="label" Text="自定义字段07" 
                                        meta:resourcekey="lblUdf8"></asp:Label>
                                </td>
                                <td>&nbsp;</td>
                                <td>&nbsp;</td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:TextBox ID="txtUdf3" runat="server" CssClass="textbox" 
                                        meta:resourcekey="txtUdf3"></asp:TextBox>
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtUdf8" runat="server" CssClass="textbox" 
                                        meta:resourcekey="txtUdf8"></asp:TextBox>
                                </td>
                                <td>&nbsp;</td>
                                <td>&nbsp;</td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:Label ID="lblUdf4" runat="server" CssClass="label" Text="自定义字段04" 
                                        meta:resourcekey="lblUdf4"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblUdf9" runat="server" CssClass="label" Text="自定义字段09" 
                                        meta:resourcekey="lblUdf9"></asp:Label>
                                </td>
                                <td>&nbsp;</td>
                                <td>&nbsp;</td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:TextBox ID="txtUdf4" runat="server" CssClass="textbox" 
                                        meta:resourcekey="txtUdf4"></asp:TextBox>
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtUdf9" runat="server" CssClass="textbox" 
                                        meta:resourcekey="txtUdf9"></asp:TextBox>
                                </td>
                                <td>&nbsp;</td>
                                <td>&nbsp;</td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:Label ID="lblUdf5" runat="server" CssClass="label" Text="自定义字段05" 
                                        meta:resourcekey="lblUdf5"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblUdf10" runat="server" CssClass="label" Text="自定义字段10" 
                                        meta:resourcekey="lblUdf10"></asp:Label>
                                </td>
                                <td>&nbsp;</td>
                                <td>&nbsp;</td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:TextBox ID="txtUdf5" runat="server" CssClass="textbox" 
                                        meta:resourcekey="txtUdf5"></asp:TextBox>
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtUdf10" runat="server" CssClass="textbox" 
                                        meta:resourcekey="txtUdf10"></asp:TextBox>
                                </td>
                                <td>&nbsp;</td>
                                <td>&nbsp;</td>
                            </tr>
                            <tr style="height:10px;">
                                <td></td>
                            </tr>
                        </table>
                    </div>
                </div>
                    
                 </ContentTemplate>
             </asp:UpdatePanel>   
             <input type="hidden" id="hdnFrom" runat="server" />
             <input type="hidden" id="hdnSkuID" runat="server" />
             <input type="hidden" id="hdnOwnerID" runat="server" />
             <input type="hidden" id="hdnType" runat="server" />
             <input  type="hidden" id="hdnDeliveryOrderID" runat="server" />
             <input type="hidden" id="hdnPageQty" runat="server" value="0" />
             <input type="hidden" id="hdnPageType"  runat="server" value="0" />
    </div>
    </form>
</body>
</html>
